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 interfacestatic classstatic 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)voidfindAll(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.intReturns the field offset, in bytes from the start of the struct.intReturns the size of the field, in bytes.protected voidsetFieldName(String fieldName)voidsetOffset(int offset)Sets the field offset (bytes from the start of the struct).booleanvisitAll(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, waitMethods 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:
destructin interfaceIDestructableField
-
getRecordSize
public int getRecordSize()Description copied from interface:IFieldReturns the size of the field, in bytes.- Specified by:
getRecordSizein 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:IFieldSets 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:IFieldReturns the field offset, in bytes from the start of the struct. -
getFieldName
Description copied from interface:IFieldReturns 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:
getFieldNamein interfaceIField
-