@Namespace(value="torch::jit") @NoOffset @Properties(inherit=torch.class) public class Token extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Token(int kind,
SourceRange range) |
Token(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
kind() |
Token |
kind(int setter) |
BytePointer |
kindString() |
SourceRange |
range() |
Token |
range(SourceRange setter) |
BytePointer |
text() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Token(Pointer p)
Pointer(Pointer)
.public Token(int kind, @ByVal SourceRange range)
public int kind()
public Token kind(int setter)
@ByRef public SourceRange range()
public Token range(SourceRange setter)
@StdString public BytePointer text()
@StdString public BytePointer kindString()
Copyright © 2024. All rights reserved.