public class ModelFileReferenceImpl extends Antlr3NRLBaseAst implements IModelFileReference
| Modifier and Type | Field and Description |
|---|---|
IPackage |
model |
childIndex, parent, startIndex, stopIndex, tokenNEWLINE| Constructor and Description |
|---|
ModelFileReferenceImpl(org.antlr.runtime.Token token) |
| Modifier and Type | Method and Description |
|---|---|
String |
dump(int indent)
Dump the AST and its children for debugging purposes
|
String |
getFileName()
Return the file name.
|
IPackage |
getModel()
Returns the model referred to by this reference, it has been resolved.
|
boolean |
isAbsolute()
Returns true if the file name is absolute, i.e.
|
boolean |
isModelResolved()
Returns
true if the model has been resolved in which case it can be accessed
via IModelFileReference.getModel, false otherwise. |
void |
resolveModel(IPackage model)
Attaches a model resolved from this model file reference.
|
accept, doIndent, getColumn, getLine, getUserData, initialisePositionFromChild, setColumn, setLine, setUserDatadupNode, getCharPositionInLine, getChildIndex, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringaddChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, getColumn, getLine, getUserData, setUserDatapublic IPackage model
public ModelFileReferenceImpl(org.antlr.runtime.Token token)
public String getFileName()
IModelFileReferencegetFileName in interface IModelFileReferencepublic boolean isAbsolute()
IModelFileReferenceisAbsolute in interface IModelFileReferencepublic String dump(int indent)
INRLAstNodedump in interface INRLAstNodedump in class Antlr3NRLBaseAstindent - the indentation count, 0 on first callpublic IPackage getModel()
IModelFileReferencegetModel in interface IModelFileReferencepublic boolean isModelResolved()
IModelFileReferencetrue if the model has been resolved in which case it can be accessed
via IModelFileReference.getModel, false otherwise.isModelResolved in interface IModelFileReferencetrue if the model has been resolved, false otherwise.public void resolveModel(IPackage model)
IModelFileReferenceresolveModel in interface IModelFileReferencemodel - The resolved model for this model file referenceCopyright © 2006-2013. All Rights Reserved.