51 lines
936 B
Java
51 lines
936 B
Java
package dev.peerat.parser.java.value;
|
|
|
|
import java.util.List;
|
|
import java.util.function.Function;
|
|
|
|
import dev.peerat.parser.Token;
|
|
import dev.peerat.parser.java.JavaElement;
|
|
import dev.peerat.parser.java.visitor.JavaVisitor;
|
|
import dev.peerat.parser.visitor.VisitorBag;
|
|
|
|
public class CastValue extends Value{
|
|
|
|
private Token type;
|
|
private Value value;
|
|
|
|
public CastValue(Token type, Value value){
|
|
this.type = type;
|
|
this.value = value;
|
|
}
|
|
|
|
public Token getType(){
|
|
return this.type;
|
|
}
|
|
|
|
public Value getValue(){
|
|
return this.value;
|
|
}
|
|
|
|
@Override
|
|
public void build(Builder builder) throws Exception {
|
|
|
|
}
|
|
|
|
@Override
|
|
public <E extends JavaElement> E find(Function<JavaElement, Boolean> finder) {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public <E extends JavaElement> void findAll(Function<JavaElement, Boolean> finder, List<E> list) {
|
|
|
|
}
|
|
|
|
@Override
|
|
public VisitorBag visit(JavaVisitor<?> visitor) {
|
|
return null;
|
|
}
|
|
|
|
|
|
|
|
}
|