public class NamespaceTrait extends Object implements Trait<NamespaceTrait>
| Constructor and Description |
|---|
NamespaceTrait(AstAttribute originalAst,
AstName namespace)
Creates and returns a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
AstName |
getNamespace()
Returns the specified namespace.
|
AstAttribute |
getOriginalAst()
Returns the corresponded syntactic element of this.
|
public NamespaceTrait(AstAttribute originalAst, AstName namespace)
originalAst - the original AST, or null if this is an ad-hoc elementnamespace - the specified namespaceIllegalArgumentException - if some parameters were nullpublic AstAttribute getOriginalAst()
ElementgetOriginalAst in interface Elementnull if unknownpublic AstName getNamespace()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.