public abstract class IlrBRLSemanticContextExtension extends IlrPropertyManager
IlrBRL class.IlrBRLIlrPropertyManager.Property| Modifier | Constructor and Description |
|---|---|
protected |
IlrBRLSemanticContextExtension(IlrBRLSemanticContext semanticContext)
Creates a semantic context extension.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
declareGlobalVariables()
This method is called by the Semantic Context to declare some global variables specific to this context
extension.
|
IlrBRLSemanticContext |
getSemanticContext()
Returns the semantic context that owns this extension.
|
static IlrTypeInfo |
getSyntaxNodeTypeInfo(IlrSyntaxTree.Node node,
IlrVocabulary vocabulary)
Returns the type info that represents the node given as argument.
|
static IlrTypeInfo |
getSyntaxNodeTypeInfo(IlrSyntaxTree.Node node,
int subNodeIndex,
IlrVocabulary vocabulary)
Returns the type info that represents a subnode of the node.
|
static IlrTypeInfo |
getSyntaxNodeTypeInfo(IlrSyntaxTree.Node node,
java.lang.String subNodeName,
IlrVocabulary vocabulary)
Returns the type info that represents a subnode of the node.
|
java.lang.Object |
getVocabularyElementProperty(IlrBaseElement vocElement,
java.lang.String propertyName)
By defaults, queries the vocabulary for the property.
|
getProperty, getProperty, hasProperty, hasProperty, properties, removeAllProperties, removeProperty, removeProperty, setProperty, setPropertyprotected IlrBRLSemanticContextExtension(IlrBRLSemanticContext semanticContext)
semanticContext - the associated semantic contextIlrBRLpublic static IlrTypeInfo getSyntaxNodeTypeInfo(IlrSyntaxTree.Node node, IlrVocabulary vocabulary)
node - The node from which the type info are retrieved.vocabulary - The vocabulary associated to the Abstract Syntax Tree node.null if no type info is found.IlrTypeInfopublic static IlrTypeInfo getSyntaxNodeTypeInfo(IlrSyntaxTree.Node node, java.lang.String subNodeName, IlrVocabulary vocabulary)
node - The node from which the type info are retrieved.subNodeName - The subnode name to retrieve.vocabulary - The vocabulary associated to the Abstract Syntax Tree node.null if no type info is found.IlrTypeInfopublic static IlrTypeInfo getSyntaxNodeTypeInfo(IlrSyntaxTree.Node node, int subNodeIndex, IlrVocabulary vocabulary)
node - The node from which the type info are retrieved.subNodeIndex - The index of the subnode to retrieve.vocabulary - The vocabulary associated to the Abstract Syntax Tree node.null if no type info is found.IlrTypeInfopublic IlrBRLSemanticContext getSemanticContext()
protected void declareGlobalVariables()
public java.lang.Object getVocabularyElementProperty(IlrBaseElement vocElement, java.lang.String propertyName)
© Copyright IBM Corp. 1987, 2017