Package com.ibm.wala.cast.ir.translator
Class AbstractScriptEntity
- java.lang.Object
-
- com.ibm.wala.cast.ir.translator.AbstractEntity
-
- com.ibm.wala.cast.ir.translator.AbstractCodeEntity
-
- com.ibm.wala.cast.ir.translator.AbstractScriptEntity
-
- All Implemented Interfaces:
CAstEntity
public class AbstractScriptEntity extends AbstractCodeEntity
-
-
Field Summary
-
Fields inherited from class com.ibm.wala.cast.ir.translator.AbstractCodeEntity
Ast, cfg, src, type, types
-
Fields inherited from interface com.ibm.wala.cast.tree.CAstEntity
FIELD_ENTITY, FILE_ENTITY, FUNCTION_ENTITY, GLOBAL_ENTITY, MACRO_ENTITY, RULE_ENTITY, SCRIPT_ENTITY, SUB_LANGUAGE_BASE, TYPE_ENTITY
-
-
Constructor Summary
Constructors Constructor Description AbstractScriptEntity(File file, CAstType type)
AbstractScriptEntity(String file, CAstType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class com.ibm.wala.cast.ir.translator.AbstractCodeEntity
getAST, getControlFlow, getNodeTypeMap, getSourceMap, getType, setAst, setGotoTarget, setLabelledGotoTarget, setNodePosition, setNodeType
-
Methods inherited from class com.ibm.wala.cast.ir.translator.AbstractEntity
addScopedEntity, getAllScopedEntities, getAnnotations, getPosition, getScopedEntities, getSignature, setPosition
-
-
-
-
Method Detail
-
getKind
public int getKind()
Description copied from interface:CAstEntity
What kind of entity is this? The answer should be one of the constants in this file. This has no meaning to the CAPA AST interfaces, but should be meaningful to a given producer and consumer of an entity.
-
getFile
protected File getFile()
-
getName
public String getName()
Description copied from interface:CAstEntity
Some programming language constructs have names. This should be it, if appropriate, and null otherwise.
-
getArgumentNames
public String[] getArgumentNames()
Description copied from interface:CAstEntity
Some programming language constructs have named arguments. This should be their names, if appropriate. Otherwise, please return an array of size 0, since null can be a pain.
-
getArgumentDefaults
public CAstNode[] getArgumentDefaults()
Description copied from interface:CAstEntity
Some programming language constructs allow arguments to have default values. This should be those defaults, one per named argument above. Otherwise, please return an array of size 0, since null can be a pain.
-
getArgumentCount
public int getArgumentCount()
Description copied from interface:CAstEntity
Some programming language constructs have a specific number of arguments. This should be that number, if appropriate, and 0 otherwise.
-
getQualifiers
public Collection<CAstQualifier> getQualifiers()
Description copied from interface:CAstEntity
Returns an Iterator over the qualifiers of the given entity, if it has any, e.g., "final", "private".
-
getFileName
public String getFileName()
-
-