public final class AnnotationStatementSupport extends AbstractStatementSupport<String,AnnotationStatement,AnnotationEffectiveStatement>
Modifier and Type | Method and Description |
---|---|
AnnotationStatement |
createDeclared(StmtContext<String,AnnotationStatement,?> ctx)
Create a
DeclaredStatement for specified context. |
AnnotationEffectiveStatement |
createEffective(StmtContext<String,AnnotationStatement,AnnotationEffectiveStatement> ctx)
Create a
EffectiveStatement for specified context. |
static AnnotationStatementSupport |
getInstance() |
protected SubstatementValidator |
getSubstatementValidator()
Returns corresponding substatement validator of a statement support.
|
void |
onStatementAdded(StmtContext.Mutable<String,AnnotationStatement,AnnotationEffectiveStatement> stmt)
Invoked when a statement supported by this instance is added to build context.
|
String |
parseArgumentValue(StmtContext<?,?,?> ctx,
String value)
Parses textual representation of argument in object representation.
|
getPublicView, getSupportSpecificForArgument, hasArgumentSpecificSupports, onFullDefinitionDeclared, onLinkageDeclared, onPreLinkageDeclared, onStatementDefinitionDeclared
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adaptArgumentValue, getArgumentName, getDeclaredRepresentationClass, getEffectiveRepresentationClass, getImplicitParentFor, getStatementName, getUnknownStatementDefinitionOf, internArgument, isArgumentYinElement, isIgnoringConfig, isIgnoringIfFeatures
public static AnnotationStatementSupport getInstance()
public AnnotationStatement createDeclared(StmtContext<String,AnnotationStatement,?> ctx)
StatementFactory
DeclaredStatement
for specified context.ctx
- Statement contextpublic AnnotationEffectiveStatement createEffective(StmtContext<String,AnnotationStatement,AnnotationEffectiveStatement> ctx)
StatementFactory
EffectiveStatement
for specified context.ctx
- Statement contextpublic String parseArgumentValue(StmtContext<?,?,?> ctx, String value)
StatementSupport
ctx
- Context, which may be used to access source-specific namespaces required for parsing.value
- String representation of value, as was present in text source.public void onStatementAdded(StmtContext.Mutable<String,AnnotationStatement,AnnotationEffectiveStatement> stmt)
StatementSupport
StmtContext.getParentContext()
. One such use is populating the parent's namespaces to
allow it to locate this child statement.onStatementAdded
in interface StatementSupport<String,AnnotationStatement,AnnotationEffectiveStatement>
onStatementAdded
in class AbstractStatementSupport<String,AnnotationStatement,AnnotationEffectiveStatement>
stmt
- Context of added statement. No substatements are available.protected SubstatementValidator getSubstatementValidator()
AbstractStatementSupport
getSubstatementValidator
in class AbstractStatementSupport<String,AnnotationStatement,AnnotationEffectiveStatement>
Copyright © 2019 OpenDaylight. All rights reserved.