Interface JavaProcedureEntity
- All Superinterfaces:
CAstEntity
- All Known Implementing Classes:
JDTJava2CAstTranslator.ProcedureEntity
-
Field Summary
Fields inherited from interface CAstEntity
FIELD_ENTITY, FILE_ENTITY, FUNCTION_ENTITY, GLOBAL_ENTITY, MACRO_ENTITY, RULE_ENTITY, SCRIPT_ENTITY, SUB_LANGUAGE_BASE, TYPE_ENTITYModifier and TypeFieldDescriptionstatic final intThis entity is a field in an object-oriented language.static final intThis entity is a source file (i.e.static final intThis entity is a function.static final intThis entity represents a global variablestatic final intThis entity is a macro.static final intThis entity represents a rule in a logic language.static final intThis entity is a program script for a scripting language.static final intLanguages that introduce new kinds of CAstEntity should use this number as the base of integers chosen to denote the new entity types.static final intThis entity is a type in an object-oriented language. -
Method Summary
Modifier and TypeMethodDescriptionSome programming language constructs have signatures, which are like names but usually have some detail to distinguish the construct from others with the same name.Methods inherited from interface CAstEntity
getAllScopedEntities, getAnnotations, getArgumentCount, getArgumentDefaults, getArgumentNames, getAST, getControlFlow, getKind, getName, getNamePosition, getNodeTypeMap, getOriginal, getPosition, getPosition, getQualifiers, getScopedEntities, getSourceMap, getTypeModifier and TypeMethodDescriptionSome programming language constructs have a lexical structure.Returns the set of any annotations this entity may haveintSome programming language constructs have a specific number of arguments.CAstNode[]Some programming language constructs allow arguments to have default values.String[]Some programming language constructs have named arguments.getAST()The CAPA AST of this entity.The control flow map for the CAPA AST of this entity.intgetKind()What kind of entity is this? The answer should be one of the constants in this file.getName()Some programming language constructs have names.The source position of the token denoting this entity's name.The map from CAstNodes to types.default CAstEntityAllow finding original entity after rewritesThe source position of this entity.getPosition(int arg) The source position of argument 'arg' this entity, if any;Returns an Iterator over the qualifiers of the given entity, if it has any, e.g., "final", "private".getScopedEntities(CAstNode construct) Some programming language constructs have a lexical structure.The map of CAstNodes to source positions for the CAPA AST of this entity.getType()The CAst type of this entity.
-
Method Details
-
getSignature
String getSignature()Description copied from interface:CAstEntitySome programming language constructs have signatures, which are like names but usually have some detail to distinguish the construct from others with the same name. Signatures often denote typing information as well, but this is not required. This method should return a signature if appropriate, and null otherwise.- Specified by:
getSignaturein interfaceCAstEntity
-