class TernaryAST extends AST
Тренарный оператор
Пример парсинг выражения
a ? b : c
Дерево AST:
TernaryAST ? : -| IdentifierAST IdentifierTok a -| IdentifierAST IdentifierTok b -| IdentifierAST IdentifierTok c
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TernaryAST
- AST
- Tok
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
TernaryAST(begin: PTR, end: PTR, firstOperator: OperatorAST, secondOperator: OperatorAST, first: AST, second: AST, third: AST)
- begin
начало в исходнике
- end
конец в исходнике
- firstOperator
оператор
- secondOperator
оператор
- first
левый операнд
- second
правый операнд
- third
правый операнд
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
begin(): PTR
Возвращает указатель на начало лексемы
-
def
children(): List[AST]
Возвращает список дочерних узлов
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
end(): PTR
Возвращает указатель на конец лексемы
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val first: AST
- val firstOperator: OperatorAST
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
replace(what: AST, to: AST): TernaryAST
Клонирование и замена дочернего узла
Клонирование и замена дочернего узла
- what
Что заеняется
- to
На что заменяется
- returns
клон с новым значением
- Definition Classes
- TernaryAST → AST
- val second: AST
- val secondOperator: OperatorAST
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val third: AST
-
def
toString(): String
- Definition Classes
- TernaryAST → AnyRef → Any
-
def
tree: ASTIterator
Итератор по дереву AST
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.