public class AbstractScriptEntity extends AbstractCodeEntity
Ast, cfg, src, type, types
FIELD_ENTITY, FILE_ENTITY, FUNCTION_ENTITY, GLOBAL_ENTITY, MACRO_ENTITY, RULE_ENTITY, SCRIPT_ENTITY, SUB_LANGUAGE_BASE, TYPE_ENTITY
Constructor and Description |
---|
AbstractScriptEntity(File file,
CAstType type) |
AbstractScriptEntity(String file,
CAstType type) |
Modifier and Type | Method and Description |
---|---|
int |
getArgumentCount()
Some programming language constructs have a specific number of
arguments.
|
CAstNode[] |
getArgumentDefaults()
Some programming language constructs allow arguments to have default
values.
|
String[] |
getArgumentNames()
Some programming language constructs have named arguments.
|
protected File |
getFile() |
String |
getFileName() |
int |
getKind()
What kind of entity is this? The answer should be one of the
constants in this file.
|
String |
getName()
Some programming language constructs have names.
|
Collection<CAstQualifier> |
getQualifiers()
Returns an Iterator over the qualifiers of the given entity, if it has
any, e.g., "final", "private".
|
String |
toString() |
getAST, getControlFlow, getNodeTypeMap, getSourceMap, getType, setAst, setGotoTarget, setLabelledGotoTarget, setNodePosition, setNodeType
addScopedEntity, getAllScopedEntities, getAnnotations, getPosition, getScopedEntities, getSignature, setPosition
public int getKind()
CAstEntity
protected File getFile()
public String getName()
CAstEntity
public String[] getArgumentNames()
CAstEntity
public CAstNode[] getArgumentDefaults()
CAstEntity
public int getArgumentCount()
CAstEntity
public Collection<CAstQualifier> getQualifiers()
CAstEntity
public String getFileName()