Class FieldSearchIndex<T extends NdNode>
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.field.FieldSearchIndex<T>
- All Implemented Interfaces:
IDestructableField
,IField
Declares a field representing a case-insensitive search tree over elements which are a subtype of NdNode.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
static interface
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the entire contents of the index as a single list.static <T extends NdNode, B>
FieldSearchIndex<T>create(StructDef<B> builder, FieldSearchKey<B> searchKey)
void
findAll(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria)
findAll(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria, int count)
findBest(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria, FieldSearchIndex.IResultRank rankFunction)
findFirst(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria)
Returns the name of the field.int
Returns the field offset, in bytes from the start of the struct.int
Returns the size of the field, in bytes.protected void
setFieldName(String fieldName)
void
setOffset(int offset)
Sets the field offset (bytes from the start of the struct).boolean
visitAll(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria, FieldSearchIndex.Visitor<T> visitor)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.core.nd.field.IField
getAlignment
-
Field Details
-
offset
protected int offset
-
-
Method Details
-
create
public static <T extends NdNode, B> FieldSearchIndex<T> create(StructDef<B> builder, FieldSearchKey<B> searchKey) -
get
-
destruct
- Specified by:
destruct
in interfaceIDestructableField
-
getRecordSize
public int getRecordSize()Description copied from interface:IField
Returns the size of the field, in bytes.- Specified by:
getRecordSize
in interfaceIField
-
findFirst
-
findBest
public T findBest(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria, FieldSearchIndex.IResultRank rankFunction) -
visitAll
public boolean visitAll(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria, FieldSearchIndex.Visitor<T> visitor) -
findAll
-
findAll
public List<T> findAll(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria, int count) -
asList
Returns the entire contents of the index as a single list. -
setFieldName
-
setOffset
public final void setOffset(int offset)Description copied from interface:IField
Sets the field offset (bytes from the start of the struct). This is invoked some time after field construction, after the sizes of all preceeding fields are known. -
getOffset
public final int getOffset()Description copied from interface:IField
Returns the field offset, in bytes from the start of the struct. -
getFieldName
Description copied from interface:IField
Returns the name of the field. This is mainly used for error messages, debug output, and diagnostic tools. Meant to be programmer-readable but not user-readable.- Specified by:
getFieldName
in interfaceIField
-