blob: 7ddcd2c435b05d7948ac3ec83e2e158694ad4e8b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/*******************************************************************************
* Copyright (c) 2001, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jem.internal.proxy.initParser;
/*
* $RCSfile: NullLiteral.java,v $
* $Revision: 1.3 $ $Date: 2004/08/27 15:35:20 $
*/
public class NullLiteral extends Expression {
public NullLiteral(){
}
/**
* evaluate method comment.
*/
public Object evaluate() {
return null;
}
/**
* evaluate method comment.
*/
public Class getTypeClass(){
return MethodHelper.NULL_TYPE;
}
protected String getTypeClassName() {
return MethodHelper.NULL_TYPE.getName();
}
/**
* true or false cannot consume any kind of expression so we must return null
*/
public Expression push(char[] token , char delimiter){
return null;
}
public boolean isComplete(){
return true;
}
/**
* Null is not primitive
*/
public boolean isPrimitive() {
return false;
}
}
|