Package io.sundr.model
Class WithScope
java.lang.Object
io.sundr.model.WithScope
- All Implemented Interfaces:
Expression,Node,Renderable,WithReferences
- Direct Known Subclasses:
Index,MethodCall,PropertyRef
Abstract class for expressions that have a scope.
This allows for generic handling of scoped expressions like PropertyRef, MethodCall, Index, etc.
-
Field Summary
Fields inherited from interface io.sundr.model.Expression
NULLFields inherited from interface io.sundr.model.Node
AT, CB, CC, CLP, COLN, COMA, CP, DOT, DQ, EMPTY, EQ, EXTENDS, GT, IMPLEMENTS, INDENT, JAVA_LANG, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_STRING, LT, NEWLINE, NEWLINE_PATTERN, OB, OC, OP, Q, SEMICOLN, SEMICOLN_SUFFIX_PATTERN, SPACE, STAR, THROWS, VARARG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScope()Gets the scope expression for this scoped expression.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.sundr.model.Expression
and, and, assign, assign, assignNew, assignNew, assignNull, call, call, cast, cast, divide, enclosed, eq, index, index, instanceOf, instanceOf, isNull, minus, minus, modulo, multiply, ne, negative, not, notNull, or, or, plus, plus, positive, postDecrement, postIncrement, preIncrement, pretDecrement, property, property, property, renderExpression, retMethods inherited from interface io.sundr.model.Renderable
render, tabMethods inherited from interface io.sundr.model.WithReferences
getReferences
-
Constructor Details
-
WithScope
-
-
Method Details
-
getScope
Gets the scope expression for this scoped expression.- Returns:
- the scope expression, or null if unscoped
-